package com.lanou3g.ptp.organize.service;

import com.lanou3g.ptp.entity.Major;
import com.lanou3g.ptp.vo.Option;

import java.util.List;

public interface MajorService {
    void addMajor(Major major);

    Major findById(Long id);

    List<Major> findByIds(Long[] ids);

    Major findByName(String name);

    Major findByName(Long collegeId, String name);

    List<Major> findAll(Integer page, Integer size);

    void updateById(Major major);

    void deleteById(Long id);

    void deleteByIds(Long[] ids);

    List<Major> findByCollegeId(Long collegeId);

    List<Major> findByCollegeIdSimple(Long collegeId);

    String[] findNamesByCollegeId(Long collegeId);

    List<Option> options();
}
